How to get the level and position of the player from an extern program? [on hold]

Posted by user3727174 on Game Development See other posts from Game Development or by user3727174
Published on 2014-06-10T19:30:23Z Indexed on 2014/06/11 3:48 UTC
Read the original article Hit count: 150

Filed under:
|
|

I want to write a program that needs the current level and position of the player (primary single player). This should work for potentially every game installed and running on the computer my program is running on. The data I need is basically one integer value for the level (if there are any) and three integer values for x, y and optimal z for the position of the player. In which relation/scale or where the null point is does not matter, because this information is going to be interpreted game dependent, I will use this information to read information out of a database created for the game currently running.

Currently I'm using C++, but if there is a better option for Java I´m willing to port my program.

My thoughs so far are:

  • make a mod for every game that should be supported, get the position/level from there, write this information to the disk and read it from my program
  • tracking mouse/keyboard events and reconstructing the movement won't work

Are there any general APIs for something like this? Any Tool to find this data? Or maybe engines that provide APIs to get this data directly from the game?

© Game Development or respective owner

Related posts about c++

Related posts about java